<?php

namespace app\service\RpcService;

use app\common\lib\File;

class FileRpc extends BaseRpc
{
    public function uploadFile($params = [])
    {
        $clientId = $params['api_key'];
        $m = new File($clientId);
        $params['request_type'] = 'rpc';
        $res = $m->upload($params);
        return $this->response($res['status'], $res['msg'], $res['data']);
    }
}